<%--
  Created by IntelliJ IDEA.
  User: Wllove
  Date: 2020/12/23
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
    <title>物业管理系统用户登陆界面</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--图标-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/font-awesome.min.css">

    <!--布局框架-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/util.css">

    <!--主要样式-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/userLogin.css">
</head>

<body>

<div class="login">
    <div class="container-login100">
        <div class="wrap-login100">
            <div class="login100-pic js-tilt" data-tilt>
                <img src="../image/img-01.png" alt="IMG">
            </div>

            <form class="login100-form validate-form" action="LoginServlet" method="post">
				<span class="login100-form-title">
			  		用户登陆
				</span>

                <div class="wrap-input100 validate-input">
                    <input class="input100" type="text" name="username" placeholder="用户名" required>
                    <span class="focus-input100"></span>
                    <span class="symbol-input100">
						<i class="fa fa-user" aria-hidden="true"></i>
					</span>
                </div>

                <div class="wrap-input100 validate-input">
                    <input class="input100" type="password" name="password" placeholder="密码" required>
                    <span class="focus-input100"></span>
                    <span class="symbol-input100">
						<i class="fa fa-lock" aria-hidden="true"></i>
					</span>
                </div>

                <div class="container-login100-form-btn">
                    <button class="login100-form-btn-user">
                        用户登陆
                    </button>
                </div>
                <div class="container-login100-form-btn">
                    <button class="login100-form-btn-manager" onclick="window.open('managelogin.jsp')" type="submit">
                        进入管理员登陆界面
                    </button>
                </div>

                <div class="text-center p-t-136">
                    <a class="txt1" href="register.jsp">
                        还没有账号？立即注册
                        <i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
<script>
    var error ='<%=request.getParameter("error")%>';
    if(error == 'yes'){
        alert("账号或者密码错误!");
    }
</script>
</html>
